package com.sfc.sdsr.common.model;

import java.io.Serializable;
import java.util.UUID;

public class Song implements IFileDao, Serializable, Comparable<Song> {

	private static final long serialVersionUID = 0xDAEDBEEFCAFE0007L;

	private UUID songUuid;
	private String title;
	private String artist;
	private Key keySignature;
	private int bpm;
	private String genra;
	private String extraString;
	
	public UUID getSongUuid() {
		return songUuid;
	}

	public void setSongUuid(UUID songUuid) {
		this.songUuid = songUuid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getArtist() {
		return artist;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}

	public Key getKeySignature() {
		return keySignature;
	}

	public void setKeySignature(Key keySignature) {
		this.keySignature = keySignature;
	}

	public int getBpm() {
		return bpm;
	}

	public void setBpm(int bpm) {
		this.bpm = bpm;
	}

	public String getGenra() {
		return genra;
	}

	public void setGenra(String genra) {
		this.genra = genra;
	}

	public String getExtraString() {
		return extraString;
	}

	public void setExtraString(String extraString) {
		this.extraString = extraString;
	}

	@Override
	public String getPrimaryKey() {
		return (title).toLowerCase();
	}
	
	@Override
	public int compareTo(Song o) {
		return 0;
	}
	
	public String toString() {
		return "Song: " + title;
	}
}
